{% extends "base.html" %}

{% block menu %}{% endblock %}
{% block userinfo %}{% endblock %}

{% block css-extra %}
<link rel="stylesheet" type="text/css" href="{{ media_url }}css/login.css">
{% endblock %}


{% block pagename %}Bem vindo ao WMS{% endblock %}

{% block content %}

<form method="post" action="{% url usuario.login %}?next={{ next }}">{% csrf_token %}
	<table class="login" cellpadding="0" cellspacing="0">
		<tr {% if form.usuario.errors %}class="linha_com_erro"{% endif %}>
            <th>Usuário:</th>
            <td>{{ form.usuario }} {{ form.usuario.errors }} </td>
        </tr>
		<tr {% if form.senha.errors %}class="linha_com_erro"{% endif %}>
            <th>Senha:</th>
            <td>{{ form.senha }} {{ form.senha.errors }} </td>
        </tr>
		<tr>
			<td colspan="2">{{ form.non_field_errors  }}</td>
		</tr>
	</table>
	<div class="buttons_row to_right" style="width: 280px;">
		<input type="submit" value="Entrar">
	</div>
</form>

{% endblock %}
